﻿using PlateNumVideo.Entity;
using PlateNumVideo.Interface;
using PlateNumVideo.RealR3;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlateNumVideo
{
    public class PlateNumFactory
    {
        private PlateNumFactory() { }

        /// <summary>
        /// 创建车号识别对象
        /// </summary>
        /// <param name="ledType"></param>
        /// <returns></returns>
        public static IPlateNumVideo CreateFactory(PlateNumType plateNumType)
        {
            IPlateNumVideo plateNumDevice = null;
            if (plateNumType == PlateNumType.RealR3)
            {
                plateNumDevice = new RealR3Video();
            }

            return plateNumDevice;
        }
    }
}
